from django.forms import ModelForm
from cmdb.models import softs,ItemSofts,Items

class softsForm(ModelForm):
    class Meta:
        model = softs
        fields = ['soft_name','soft_version']
        error_messages = {
            'NON_FIELD_ERRORS': {
                'unique_together': "%(model_name)s's %(field_labels)s are not unique.",
            }
        }


class items_softForm(ModelForm):
    class Meta:
        model = ItemSofts
        exclude = []
        # fields = '__all__'


class ItemsForm(ModelForm):
    class Meta:
        model = Items
        exclude = []